import request from '@/utils/request'
// 查询供应商采购退货列表
export function selectSupplierYieldList(query) {
  return request({
    url: '/purchase/PurchaseReturn/selectSupplierYieldList',
    method: 'get',
    params: query
  })
}
// 查询供应商采购退货列表
export function selectReturnVolumeList(query) {
  return request({
    url: '/purchase/PurchaseReturn/selectReturnVolumeList',
    method: 'get',
    params: query
  })
}
// 查询供应商采购退货列表
export function selectReturnStatisticsList(query) {
  return request({
    url: '/purchase/PurchaseReturn/selectReturnStatisticsList',
    method: 'get',
    params: query
  })
}
// 查询供应商采购退货列表
export function selectPurchaseReturnVoList(query) {
  return request({
    url: '/purchase/PurchaseReturn/selectPurchaseReturnVoList',
    method: 'get',
    params: query
  })
}
// 查询供应商采购退货列表
export function listPurchaseReturn(query) {
  return request({
    url: '/purchase/PurchaseReturn/list',
    method: 'get',
    params: query
  })
}
// 查询供应商采购退货详细
export function getPurchaseReturn(id) {
  return request({
    url: '/purchase/PurchaseReturn/' + id,
    method: 'get'
  })
}

// 新增供应商采购退货
export function addPurchaseReturn(data) {
  return request({
    url: '/purchase/PurchaseReturn',
    method: 'post',
    data: data
  })
}

// 修改供应商采购退货
export function updatePurchaseReturn(data) {
  return request({
    url: '/purchase/PurchaseReturn',
    method: 'put',
    data: data
  })
}

// 删除供应商采购退货
export function delPurchaseReturn(id) {
  return request({
    url: '/purchase/PurchaseReturn/' + id,
    method: 'delete'
  })
}
